<!-- 平安甘肃信息化支撑管理平台 -->
<template>
  <div class="bgimg">
    <div class="out">
      <img src="./img/home.png" alt="首页" @click="homeClick" />
      <img src="./img/tuichu.png" alt="退出" />
    </div>
    <div class="user">
      <p>兰州市永登县</p>
      <p><span>杨博超</span>您好！</p>
    </div>
    <div class="content">
      <div class="sixPlate">
        <div
          v-for="(item, index) in sixPlate"
          :key="index"
          class="sixPlate_one"
        >
          <!-- target="_blank"      新窗口-->
          <a :href="item.link"
            ><img :src="item.img" alt="" class="sixPlate_one_img"
          /></a>
          <p class="sixPlate_one_img_text">{{ item.name }}</p>
        </div>
      </div>
      <div class="threePlate">
        <div
          v-for="(item, index) in threePlate"
          :key="index"
          class="threePlate_one"
        >
          <!-- target="_blank"      新窗口-->
          <a :href="item.link"
            ><img :src="item.img" alt="" class="threePlate_one_img"
          /></a>
          <p class="threePlate_one_img_text">{{ item.name }}</p>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  components: {},
  data () {
    return {
      // 六个看板板块
      sixPlate: [
        {
          name: '平安甘肃信息化支撑管理平台',
          img: require('./img/xxhzc.png'),
          link: 'javascript:void(0)'
        },
        {
          name: '平安甘肃命案风险预警智能系统',
          img: require('./img/fxyj.png'),
          link: 'javascript:void(0)'
        },
        {
          name: '三维数字社会服务管理系统',
          img: require('./img/sqfw.png'),
          link: 'javascript:void(0)'
        },
        {
          name: '社会稳定风险评估系统',
          img: require('./img/pg.png'),
          link: 'javascript:void(0)'
        },
        {
          name: '雪亮工程',
          img: require('./img/xlgc.png'),
          link: 'javascript:void(0)'
        },
        {
          name: '智慧城市',
          img: require('./img/zhcs.png'),
          link: 'javascript:void(0)'
        }
      ],
      // 三个看板板块
      threePlate: [
        {
          name: '校园周边',
          img: require('./img/xyzb.png'),
          link: 'javascript:void(0)'
        },
        {
          name: '智慧安防小区',
          img: require('./img/zhaf.png'),
          link: 'javascript:void(0)'
        },
        {
          name: '智慧人社、智慧环保、智慧住建....',
          img: require('./img/zhrs.png'),
          link: 'javascript:void(0)'
        }
      ]
    }
  },
  computed: {},
  watch: {},
  methods: {
    homeClick () {
      this.$router.push('/Safeensee')
    }
  },
  created () {},
  mounted () {},
  beforeCreate () {},
  beforeMount () {},
  beforeUpdate () {},
  updated () {},
  beforeDestroy () {},
  destroyed () {},
  activated () {}
}
</script>
<style lang='less' scoped>
p {
  margin: 0;
}
.bgimg {
  background-image: url(img/bg.png);
  width: 1920px;
  height: 1080px;
  position: relative;
}
.out {
  position: absolute;
  right: 40px;
  top: 20px;
}
.out img:nth-child(1) {
  margin-right: 15px;
  cursor: pointer;
}
.out img:nth-child(2) {
  cursor: pointer;
}
.user {
  width: 241px;
  height: 91px;
  background-image: url(img/touxiang.png);
  background-repeat: no-repeat;
  background-position: left center;
  position: absolute;
  top: 100px;
  left: 40px;
}
.user p {
  font-family: YouShe;
  padding-left: 100px;
  color: #fff;
  font-size: 24px;
  line-height: 34px;
  font-style: oblique;
  letter-spacing: 1px;
}
.user span {
  color: #02fbff;
}
.user p:nth-child(1) {
  margin-top: 10px;
}
.content {
  width: 1200px;
  height: auto;
  position: absolute;
  left: 50%;
  top: 53%;
  transform: translate(-50%, -50%);
}
.sixPlate_one {
  width: 33.3%;
  height: 300px;
  background-image: url(img/5hfg.png);
  background-repeat: no-repeat;
  background-position: center;
  position: relative;
}
.sixPlate {
  display: flex;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
}
.sixPlate_one_img {
  position: absolute;
  width: 85px;
  left: 40%;
  top: 34%;
  transform: translate(-50%, -50%);
  animation: jump 4s ease infinite;
}
.sixPlate_one:nth-child(3) .sixPlate_one_img {
  left: 39%;
  top: 37%;
  width: 91px;
}
@keyframes jump {
  0% {
    transform: translateY(0) scale(1);
  }
  /* 中间状态图片位移并且拉伸 */
  50% {
    transform: translateY(-20px) scale(1);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}
@keyframes shadow {
  0% {
    transform: scale(1);
    opacity: 1;
    filter: blur(5px);
  }
  /* 投影缩放+虚化 */
  50% {
    transform: scale(0.8);
    opacity: 0.7;
    filter: blur(8px);
  }
  100% {
    transform: scale(1);
    opacity: 1;
    filter: blur(5px);
  }
}
.sixPlate_one_img_text {
  width: 100%;
  text-align: center;
  font-family: YouShe;
  color: #fff;
  text-shadow: 1px 1px 10px #02fbff;
  font-size: 28px;
  position: absolute;
  bottom: 10px;
}
.sixPlate_one::after {
  content: "";
  position: absolute;
  width: 30%;
  height: 38px;
  left: 35%;
  bottom: 74px;
  transform: translate(-50%, -50%);
  z-index: -1;
  background: #1ac1d1;
  filter: blur(5px);
  border-radius: 50%;
  animation: shadow 4s ease infinite;
}
.threePlate {
  display: flex;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
  position: relative;
  width: 80%;
  margin: 20px auto;
}
.threePlate_one_img_text {
  width: 100%;
  text-align: center;
  font-family: YouShe;
  color: #fff;
  text-shadow: 1px 1px 10px #02fbff;
  font-size: 28px;
  position: absolute;
  bottom: 0px;
}
.threePlate_one_img {
  position: absolute;
  width: 140px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
.threePlate_one {
  width: 33.3%;
  height: 230px;
  position: relative;
}
.threePlate_one:nth-child(3) .threePlate_one_img_text {
  font-size: 22px;
}
</style>
